package revise.Array;

import java.util.Arrays;

//
public class Test3 {
    public static void main(String[] args) {
        //四、引用类型
        //1.引用类型可以看作低配的指针
        int[] arr1 = new int[] {1, 2, 3};
        int[] arr2 = arr1;
        arr2[0] = 100;
        arr2[1] = 200;
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));
        //2.空引用 null
        int[] arr3 = null;
        //3.String字符串也是引用类型
        String s = "hello";
        System.out.println(s.length());
    }
}
